﻿using System;

namespace GT
{
    public static partial class Extensions
    {
        public static bool Between<T>(this T me, T lower, T upper) where T : IComparable<T>
        {
            return me.CompareTo(lower) >= 0 && me.CompareTo(upper) < 0;
        }
    }
}
